import { Component, Input, OnInit, ViewChild, ElementRef } from '@angular/core';
declare let $: any;
@Component({
  selector: 'app-top-tips',
  templateUrl: './top-tips.component.html',
  styleUrls: ['./top-tips.component.scss'],
})
export class TopTipsComponent implements OnInit {
  @Input()
  tagData: any;
  TopTipsTagId = 'topTipsTagIdId';
  constructor() { }
  ngOnInit() {
    this.TopTipsTagId += new Date().getTime();
  }
  closeTips() {
    $('#' + this.TopTipsTagId).fadeOut();
  }
}
